# coding: utf-8

from marshmallow import Schema, fields
from model.model_base import Base
from sqlalchemy import Column, String


class PhotoIndex(Base):
    # 图片索引表
    __tablename__ = 'PhotoIndex'
    photo_fingerprint = Column(String(100), primary_key=True, comment='图片指纹')
    storage_path = Column(String(100), nullable=False, comment='存储路径')
    access_path = Column(String(100), nullable=False, comment='访问路径')


class PhotoIndexSchema(Schema):
    photo_fingerprint = fields.String()
    storage_path = fields.String()
    access_path = fields.String()


photoIndexSchema = PhotoIndexSchema()



